home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio-DSP / NU / Source / LaunchCell.m < prev    next >
Encoding:
Text File  |  1992-11-17  |  630 b   |  23 lines

  1. #import "LaunchCell.h"
  2. #import <appkit/Application.h>
  3. #import <appkit/Listener.h>
  4. #import <appkit/Speaker.h>
  5.  
  6. @implementation LaunchCell: Cell
  7.  
  8. - (BOOL)trackMouse:(NXEvent *)theEvent 
  9.     inRect:(const NXRect *)cellFrame 
  10.     ofView:controlView;
  11. { int    aFlag;
  12.   id    speaker = [NXApp appSpeaker];
  13.   // is this a ctrl-click?
  14.   if (theEvent->flags & NX_SHIFTMASK)
  15.   { NXRunAlertPanel("Holly Toledo","",NULL,NULL,NULL) ;
  16.     /* [speaker setSendPort: 
  17.     NXPortFromName(NX_WORKSPACEREQUEST, NULL)];
  18.     [speaker openFile: [theImage name] ok:&aFlag]; */
  19.   }
  20.   return [super trackMouse: theEvent inRect: cellFrame ofView: controlView] ;
  21. }
  22.  
  23. @end